package dancetiktokenumsmysql

const (
	DanceComposePropChangeLogChangeTypeAdd     = 1 //增加
	DanceComposePropChangeLogChangeTypeReduced = 2 //减少

	DanceComposePropChangeLogSourceDirectDrawPrize                        = 1
	DanceComposePropChangeLogSourceChangeDrawPrize                        = 2  //抽奖兑换获得
	DanceComposePropChangeLogSourceStoreChange                            = 3  //商城兑换奖品减少
	DanceComposePropChangeLogSourceOtherGiveChange                        = 4  //他人赠送获得
	DanceComposePropChangeLogSourceGiveOtherChange                        = 5  //赠送他人减少
	DanceComposePropChangeLogSourceAddSplinter                            = 6  //补发添加
	DanceComposePropChangeLogSourceCutSplinter                            = 7  //补发减少
	DanceComposePropChangeLogPieceExchangeScore                           = 8  //兑换星光值减少
	DanceComposePropChangeLogPieceExchangeTripScore                       = 9  //兑换旅途点减少
	DanceComposePropChangeLogPieceExchangeProp                            = 10 //碎片兑换道具增加
	DanceComposePropChangeLogUserUseProp                                  = 11 //用户,主播使用减少
	DanceComposePropChangeLogSourcePropResolve                            = 12 //道具分解
	DanceComposePropChangeLogSourceBuyShopMallGoodReduced                 = 13 //购买商品减少
	DanceComposePropChangeLogSourceBuyShopMallGoodAdd                     = 14 //购买商品增加
	DanceComposePropChangeLogSourceOpenTreasureBoxAdd                     = 15 //开宝箱增加
	DanceComposePropChangeLogSourceOpenTreasureBoxReduce                  = 16 //开宝箱减少
	DanceComposePropChangeLogSourceOpenPetEggReduce                       = 17 //开宠物蛋减少
	DanceComposePropChangeLogSourceOpenFeedPetReduce                      = 18 //喂养宠物减少
	DanceComposePropChangeLogSourceEndMiningAdd                           = 19 //结束挖矿发放奖励
	DanceComposePropChangeLogSourceTripActivity                           = 20 //旅途活动
	DanceComposePropChangeLogSourceBetaPetSettlementEmpty                 = 21 //内测宠物结算清空
	DanceComposePropChangeLogSourceBetaPetSettlementSend                  = 22 //内测宠物结算发放
	DanceComposePropChangeLogSourcePetPowerRankingAdd                     = 23 // 用户战力结算奖励
	DanceComposePropChangeLogSourceSwipeGiftsGivePropsActivity            = 24 //刷礼物送道具活动
	DanceComposePropChangeLogSourceReissueAdd                             = 25 //宠物结算补发
	DanceComposePropChangeLogSourceMysticalShopRoomBuy                    = 26 // 神秘商店直播间购买
	DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardPrize    = 27 // 周年庆活动集福卡奖励
	DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardCompound = 28 // 周年庆活动合成福卡
	DanceComposePropChangeLogSourceScoreActivity                          = 29 // 星光值活动
	DanceComposePropChangeLogSourcePetOpenEggExchange                     = 30 // 宠物开蛋兑换
	DanceComposePropChangeLogSourceOnHoldEndReward                        = 31 // 队伍挂机结束发放奖励
)

type DanceComposePropChangeLogEnums struct {
}

var DanceComposePropChangeLogEnumsObject DanceComposePropChangeLogEnums

func (e DanceComposePropChangeLogEnums) SourceType() []int {
	return []int{
		DanceComposePropChangeLogSourceDirectDrawPrize,
		DanceComposePropChangeLogSourceChangeDrawPrize,
		DanceComposePropChangeLogSourceStoreChange,
		DanceComposePropChangeLogSourceOtherGiveChange,
		DanceComposePropChangeLogSourceGiveOtherChange,
		DanceComposePropChangeLogSourceAddSplinter,
		DanceComposePropChangeLogSourceCutSplinter,
		DanceComposePropChangeLogPieceExchangeScore,
		DanceComposePropChangeLogPieceExchangeTripScore,
		DanceComposePropChangeLogPieceExchangeProp,
		DanceComposePropChangeLogUserUseProp,
		DanceComposePropChangeLogSourcePropResolve,
		DanceComposePropChangeLogSourceBuyShopMallGoodReduced,
		DanceComposePropChangeLogSourceBuyShopMallGoodAdd,
		DanceComposePropChangeLogSourceOpenTreasureBoxAdd,
		DanceComposePropChangeLogSourceOpenTreasureBoxReduce,
		DanceComposePropChangeLogSourceOpenPetEggReduce,
		DanceComposePropChangeLogSourceOpenFeedPetReduce,
		DanceComposePropChangeLogSourceEndMiningAdd,
		DanceComposePropChangeLogSourceTripActivity,
		DanceComposePropChangeLogSourceBetaPetSettlementEmpty,
		DanceComposePropChangeLogSourceBetaPetSettlementSend,
		DanceComposePropChangeLogSourcePetPowerRankingAdd,
		DanceComposePropChangeLogSourceSwipeGiftsGivePropsActivity,
		DanceComposePropChangeLogSourceReissueAdd,
		DanceComposePropChangeLogSourceMysticalShopRoomBuy,
		DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardPrize,
		DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardCompound,
		DanceComposePropChangeLogSourceScoreActivity,
		DanceComposePropChangeLogSourcePetOpenEggExchange,
		DanceComposePropChangeLogSourceOnHoldEndReward,
	}
}

func (e DanceComposePropChangeLogEnums) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e DanceComposePropChangeLogEnums) SourceString(tag int) string {
	switch tag {
	case DanceComposePropChangeLogSourceDirectDrawPrize:
		return "抽奖直接获得"
	case DanceComposePropChangeLogSourceChangeDrawPrize:
		return "抽奖兑换获得"
	case DanceComposePropChangeLogSourceStoreChange:
		return "商城兑换奖品减少"
	case DanceComposePropChangeLogSourceOtherGiveChange:
		return "他人赠送获得"
	case DanceComposePropChangeLogSourceGiveOtherChange:
		return "赠送他人减少"
	case DanceComposePropChangeLogSourceAddSplinter:
		return "补发添加"
	case DanceComposePropChangeLogSourceCutSplinter:
		return "补发减少"
	case DanceComposePropChangeLogPieceExchangeScore:
		return "兑换星光值减少"
	case DanceComposePropChangeLogPieceExchangeTripScore:
		return "兑换旅途点减少"
	case DanceComposePropChangeLogPieceExchangeProp:
		return "碎片兑换道具增加"
	case DanceComposePropChangeLogUserUseProp:
		return "用户/主播使用减少"
	case DanceComposePropChangeLogSourcePropResolve:
		return "道具分解"
	case DanceComposePropChangeLogSourceBuyShopMallGoodReduced:
		return "购买商品减少"
	case DanceComposePropChangeLogSourceBuyShopMallGoodAdd:
		return "购买商品增加"
	case DanceComposePropChangeLogSourceOpenTreasureBoxAdd:
		return "开宝箱增加"
	case DanceComposePropChangeLogSourceOpenTreasureBoxReduce:
		return "开宝箱减少"
	case DanceComposePropChangeLogSourceOpenPetEggReduce:
		return "开宠物蛋减少"
	case DanceComposePropChangeLogSourceOpenFeedPetReduce:
		return "喂养宠物减少"
	case DanceComposePropChangeLogSourceEndMiningAdd:
		return "结束挖矿发放奖励"
	case DanceComposePropChangeLogSourceTripActivity:
		return "旅途活动"
	case DanceComposePropChangeLogSourceBetaPetSettlementEmpty:
		return "内测宠物结算清空"
	case DanceComposePropChangeLogSourceBetaPetSettlementSend:
		return "内测宠物结算发放"
	case DanceComposePropChangeLogSourcePetPowerRankingAdd:
		return "战力结算奖励发放"
	case DanceComposePropChangeLogSourceSwipeGiftsGivePropsActivity:
		return "刷礼物送道具活动"
	case DanceComposePropChangeLogSourceReissueAdd:
		return "宠物结算补发"
	case DanceComposePropChangeLogSourceMysticalShopRoomBuy:
		return "神秘商店直播间购买"
	case DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardPrize:
		return "周年庆活动集福卡奖励"
	case DanceComposePropChangeLogSourceAnniversaryActivityFortuneCardCompound:
		return "周年庆活动合成福卡"
	case DanceComposePropChangeLogSourceScoreActivity:
		return "星光值活动"
	case DanceComposePropChangeLogSourcePetOpenEggExchange:
		return "宠物开蛋兑换"
	case DanceComposePropChangeLogSourceOnHoldEndReward:
		return "队伍挂机结束发放奖励"
	default:
		return "其他"
	}
}

func (e DanceComposePropChangeLogEnums) ChangeType() []int {
	return []int{
		DanceComposePropChangeLogChangeTypeAdd,
		DanceComposePropChangeLogChangeTypeReduced,
	}
}

func (e DanceComposePropChangeLogEnums) ChangeTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.ChangeType() {
		m[s] = e.ChangeTypeString(s)
	}
	return m
}

func (e DanceComposePropChangeLogEnums) ChangeTypeString(tag int) string {
	switch tag {
	case DanceComposePropChangeLogChangeTypeAdd:
		return "增加"
	case DanceComposePropChangeLogChangeTypeReduced:
		return "减少"
	default:
		return "其他"
	}
}
